package com.walle.gatewayserver.base;

public enum CodeContant {

	SUCCESS(1,"success"),
	FAIL(0,"fail"),
	UID_NULL(1003,"uid is null"),
	SYSTYPE_NULL(1004,"sysType is null"),
	TOKEN_NULL(1005,"token is null"),
	TOKEN_ERROR(1006,"token error"),
	TOKEN_EXPIRED(1007,"token expired"),
	TOKEN_CREATE_ERROR(1008,"create token error"),
	SERVER_ERROR(2001,"server error");
	
	private int code;
	private String msg;
	
	private CodeContant(int code ,String msg) {
		this.code=code;
		this.msg=msg;
	}
	
	public int getCode() {
		return code;
	}
	
	public String getMsg() {
		return msg;
	}
}
